package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangePacketOrderRefund;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
/**
 * 换电套餐订单退款信息
 *
 * @Date:Created in 2018/6/30 16:25
 * @Author:
 * @Modified By: zjn 2018/6/30 16:25
 */
public interface ExchangePacketOrderRefundMapper extends MasterMapper {
    /**
    * 查询表，返回行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:25
    */
    int findPageCount(ExchangePacketOrderRefund search);
    /**
     * 查询表count，（add field agency_id)
     * @Param [search]
     * @Return int
     * @Author zxj 2018/7/31
     */
    int findPageCounts(ExchangePacketOrderRefund search);
    /**
    * 查询
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePacketOrderRefund>
    * @Author By: zjn 2018/6/30  16:25
    */
    List<ExchangePacketOrderRefund> findPageResult(ExchangePacketOrderRefund search);
    /**
     * 查询（add field agency_id)
     * @Param [search]
     * @Return java.util.List<cc.yugu.yhdw.common.domain.hdw.ExchangePacketOrderRefund>
     * @Author zxj 2018/7/31
     */
    List<ExchangePacketOrderRefund> findPageResults(ExchangePacketOrderRefund search);
    /**
    * 根据主键查询
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePacketOrderRefund
    * @Author By: zjn 2018/6/30  16:25
    */
    ExchangePacketOrderRefund find(String id);
    /**
    * 根据主键更新
    *
    * @Param: [id, refundStatus, refundMoney, refundOperator, refundTime, refundReason]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:25
    */
    int updateStatus(@Param("id") String id,
                     @Param("refundStatus") int refundStatus,
                     @Param("refundMoney") int refundMoney,
                     @Param("refundOperator") String refundOperator,
                     @Param("refundTime") Date refundTime,
                     @Param("refundReason") String refundReason);
    /**
    * 更新 退款状态、退款理由、退款人信息
    *
    * @Param: [packetPeriodOrderRefund]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:25
    */
    int update(ExchangePacketOrderRefund packetPeriodOrderRefund);
}
